package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 教育报名表单表
 *
 * @author chenzh
 * @since 2023-02-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_form_enroll")
@Schema(name = "EduFormEnroll", title = "教育报名表单表", description = "教育报名表单表实体类")
public class EduFormEnroll extends Model<EduFormEnroll> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "formId", title = "表单id")
    @TableId(value = "form_id", type = IdType.ASSIGN_ID)
    private String formId;

    @Schema(name = "formName", title = "表单名称")
    @TableField(value = "form_name")
    private String formName;

    @Schema(name = "schoolId", title = "学校id")
    @TableField(value = "school_id")
    private String schoolId;

    @Schema(name = "formRefId", title = "表单关联表id")
    @TableField(value = "form_ref_id")
    private String formRefId;

    @Schema(name = "formRefName", title = "表单关联表名称")
    @TableField(value = "form_ref_name")
    private String formRefName;

    @Schema(name = "year", title = "年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "startTime", title = "有效开始时间")
    @TableField(value = "start_time")
    private Date startTime;

    @Schema(name = "endTime", title = "有效结束时间")
    @TableField(value = "end_time")
    private Date endTime;

    @Schema(name = "formType", title = "表单类型(大类)")
    @TableField(value = "form_type")
    private String formType;

    @Schema(name = "formClass", title = "表单小类")
    @TableField(value = "form_class")
    private String formClass;

    @Schema(name = "configName", title = "招生类别")
    @TableField(value = "config_name")
    private String configName;

    @Schema(name = "orderNo", title = "排序字段")
    @TableField(value = "order_no")
    private Integer orderNo;

    @Schema(name = "configType", title = "配置类别(招生计划)")
    @TableField(value = "config_type")
    private String configType;

    @Schema(name = "configTypeName", title = "类别名称(招生计划)")
    @TableField(value = "config_type_name")
    private String configTypeName;

    @Schema(name = "status", title = "状态")
    @TableField(value = "status")
    private String status;

    @Schema(name = "validStatus", title = "有效状态")
    @TableField(value = "valid_status")
    private String validStatus;

    @Schema(name = "del", title = "0,未删除,1,已删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "createName", title = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", title = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", title = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", title = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "areaCode", title = "行政区划")
    @TableField(value = "area_code")
    private String areaCode;

    @Override
    public Serializable pkVal() {
        return this.formId;
    }
}
